import type { Meta } from '@renderer/router/types'

import tabbar from '@renderer/router/tabbar'

const routes = [
  ...tabbar,
  ...[
    {
      path: '/update',
      component: () => import('@renderer/views/update/update.vue'),
      name: 'Update',
      meta: {
        title: '检查更新' // 页面标题
      }
    }
  ].map((item) => {
    ;(item.meta as Meta).hidden = true
    return item
  })
]

export default routes
